<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        #box {
            width: 300px;
            height: 300px;
            background-color: bisque;
            margin-left: 200px;
            margin-top: 300px;
        }
    </style>
</head>

<body>

    <div id="box">box</div>
    <script>


        const box = document.getElementById('box');

        console.log(box.getBoundingClientRect());

        console.log(document.elementFromPoint(310, 310));

    </script>
</body>

</html>